package be.groept.ace.enquete.beans;

public class Link implements Comparable<Link> {
	
	private String name;
	private String link;
	private int orderNumber;
	private boolean selected;
	
	
	public Link() { }
	public Link (int order, String name, String link) {
		this.orderNumber = order;
		this.name = name;
		this.link = link;
		this.selected = false;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public int getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	
	public boolean isSelected() {
		return selected;
	}
	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	//order by orderNumber
	@Override
	public int compareTo(Link other) {
		return this.getOrderNumber() - other.getOrderNumber();
	}
}
